import {BaseEntity,Column,Entity,Index,JoinColumn,JoinTable,ManyToMany,ManyToOne,OneToMany,OneToOne,PrimaryColumn,PrimaryGeneratedColumn,RelationId} from "typeorm";


@Entity("fa_user_token",{schema:"fastadmin" } )
export class fa_user_token {

    @Column("varchar",{ 
        nullable:false,
        primary:true,
        length:50,
        name:"token"
        })
    token:string;
        

    @Column("int",{ 
        nullable:false,
        default: () => "'0'",
        name:"user_id"
        })
    user_id:number;
        

    @Column("int",{ 
        nullable:true,
        name:"createtime"
        })
    createtime:number | null;
        

    @Column("int",{ 
        nullable:true,
        name:"expiretime"
        })
    expiretime:number | null;
        
}
